<?php 
	include ('class.ezpdf.php');
	$pdf =& new Cezpdf('a4','portrait'); //595.28,841.89
	$pw = 595.28;
	$ph = 841.89;
	$pm = 30;
	$pdf->selectFont('./fonts/Helvetica.afm');
	$pdf->setLineStyle(1);
	
	//Drawing a rectangle
	$y=$pdf->ezText('');
	$pdf->ezText('');
	$h=70;
	$w=370;
	$pdf->setColor(255/255,255/255,204/255);
	$pdf->filledRectangle($w,$y-$h,$pw-$pm+5-$w, $h);
	$pdf->setColor(0,0,0);
	
	$data = array(
		array('none'=>'<i>Lampiran 4 Perdirjen Perbendaharaan</i>'),
		array('none'=>'<i>Nomor /PB/2005</i>'),
		array('none'=>'<i>Tanggal Desember 2005</i>'),
		);
	$pdf->ezTable($data, false, false, array('showHeadings'=>0,'shaded'=>0,'showLines'=>0,'xPos'=>'right','xOrientation'=>'left'));
	$pdf->ezText('');
	$pdf->ezText('');
	$pdf->ezText("<b>KUITANSI UANG PERSEDIAAN</b>",10, array('justification'=>'center'));
	$pdf->ezText('');
	$y=$pdf->ezText('');
	
	//Drawing a rectangle
	$h=650;
	$pdf->setColor(243/255,243/255,243/255);
	$pdf->setStrokeColor(48/255,154/255,252/255);
	$pdf->filledRectangle($pm-5,$y-$h, $pw-($pm)*2+10, $h);
	$pdf->rectangle($pm-5,$y-$h, $pw-($pm)*2+10, $h);
	$pdf->setColor(0,0,0);
	$pdf->setStrokeColor(0,0,0);
	
	$pdf->ezText('');
	$data = array(
		array('none'=>'Tahun Anggaran','tikwa'=>':','isi'=>'2011'),
		array('none'=>'Nomor Bukti','tikwa'=>':','isi'=>'43434/6656/878'),
		array('none'=>'Kode Akun','tikwa'=>':','isi'=>'521111'),
		);
	$pdf->ezTable($data, false, false, array('showHeadings'=>0,'shaded'=>0,'showLines'=>0,'xPos'=>$pw-$pm,'xOrientation'=>'left'));
	$pdf->ezText('');
	$pdf->ezText('');	
	$pdf->ezText('');
	$pdf->ezText('');
	$pdf->ezText("<b><c:uline>KUITANSI/ BUKTI PEMBAYARAN</c:uline></b>",8, array('justification'=>'center')); 
	$pdf->ezText('');
	$pdf->ezText('');
	$data = array(
		array('none'=>'Sudah terima dari','tikwa'=>':','isi'=>'Kuasa Pengguna Anggaran DITJEN PENDIDIKAN ISLAM,'),
		array('none'=>'Jumlah uang','tikwa'=>':','isi'=>'Rp. 15.000.000 (Lima Belas Juta Rupiah )'),
		array('none'=>'Untuk','tikwa'=>':','isi'=>'Pembayaran honorarium bulan Januari 2010 untuk pengelola keuangan negara satuan kerja ditjen pendidikan islam departemen agama '),
		);
	$pdf->ezTable($data, false, false, array('showHeadings'=>0,'shaded'=>0,'showLines'=>0,'xPos'=>'left','xOrientation'=>'right', 'width'=>$pw-$pm*2));
	$pdf->ezText('');
	$pdf->ezText('');
	$data = array(
		array('none'=>'Pelaksana Program dan Kegiatan','col2'=>'Jakarta, 08-02-2011'),
		array('none'=>'','col2'=>''),
		array('none'=>'','col2'=>''),
		array('none'=>'','col2'=>''),
		array('none'=>'','col2'=>''),
		array('none'=>"<b>klaiu\nNIP.0909090909</b>",'col2'=>'<b>NIP.</b>'),
		);
	$pdf->ezTable($data, false, false, array('showHeadings'=>0,'shaded'=>0,'showLines'=>0,'width'=>$pw-$pm*2));
	$pdf->ezText('');
	$y=$pdf->ezText('');
	$pdf->line($pm,$y,$pw-$pm,$y);
	$pdf->ezText('');
	$pdf->ezText('');
	$data = array(
		array('none'=>"Setuju dibayar,\nA.N Kuasa Pengguna Anggaran\nPejabat Pembuat Komitmen",'col2'=>"Lunas dibayar tanggal 08-02-2011\nBendahara Pengeluaran"),
		array('none'=>'','col2'=>''),
		array('none'=>'','col2'=>''),
		array('none'=>'','col2'=>''),
		array('none'=>'','col2'=>''),
		array('none'=>"<b>Narendra DG\n196003271980021002 </b>",'col2'=>'<b>NIP.</b>'),
		);
	$pdf->ezTable($data, false, false, array('showHeadings'=>0,'shaded'=>0,'showLines'=>0,'width'=>$pw-$pm*2));
	$pdf->ezText('');
	$y=$pdf->ezText('');
	$pdf->line($pm,$y,$pw-$pm,$y);
	$pdf->ezText('');
	$pdf->ezText('');
	$data = array(
		array('none'=>"Barang/ pekerjaan tersebut telah diterima/ diselesaikan dengan lengkap dan baik\nPejabat yang bertanggungjawab"),
		array('none'=>''),
		array('none'=>''),
		array('none'=>''),
		array('none'=>''),
		array('none'=>"<b>Luxman\nNIP.</b>"),
		);
	$pdf->ezTable($data, false, false, array('showHeadings'=>0,'shaded'=>0,'showLines'=>0,'width'=>$pw-$pm*2));
	
	
	$pdf->ezStream();
?>